package au.org.arcs.dss.provider.datasource.provider.factory;

import au.org.arcs.dss.provider.ConfigManager;

/**
 *
 * @author ming
 */
public class DataSourceProviderFactoryLocator {
  public static DataSourceProviderFactory getDataSourceProviderFactory() {
    if (ConfigManager.getConfigManagerInstance().isStub()) {
      return DataSourceProviderFactory.getDataSourceProviderFactory
            (DataSourceProviderType.STUB);
    } else {
      return DataSourceProviderFactory.getDataSourceProviderFactory
            (DataSourceProviderType.IRODS_DATA_FABRIC);
    }
  }
}
